home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: pete@borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: word vs. byte alignment option
- Date: 10 Apr 1996 15:56:24 GMT
- Organization: Borland International
- Message-ID: <4kgln8$6lm@druid.borland.com>
- References: <4kdq3b$lhn@sloth.swcp.com>
- NNTP-Posting-Host: pbecker.borland.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <4kdq3b$lhn@sloth.swcp.com>, dvines@sparton.com says...
- >
- >Anybody ever have trouble with Borland C++ compiler word vs. byte
- >alignment option? When I attempt to load a word aligned array into a byte
- >aligned array, the data in the byte aligned array is off by one byte.
- >
- >The arrays come from separate modules with different alignement options
- >set.
- >
- >I thought the alignment option only affected speed or memory usage...why
- >doesn't the compiler figure out how to handle the data right?
-
- Without a code example this is impossible to answer.
-
-